package com.neu.entity;

import java.util.List;

/**
 * 
 * @author neustu
 *   个人账号表:
 */
public class Users {
private int id;     //用户编号
private String name;  // 用户账号
private String psaavord; //用户密码
private String nickname; // 用户小名
private String country; //  用户地址
private String sex;  //用户性别
@Override
public String toString() {
	return "Users [id=" + id + ", name=" + name + ", psaavord=" + psaavord + ", nickname=" + nickname + ", country="
			+ country + ", sex=" + sex + "]";
}
public Users() {
	super();
}
public Users(int id, String name, String psaavord, String nickname, String country, String sex) {
	super();
	this.id = id;
	this.name = name;
	this.psaavord = psaavord;
	this.nickname = nickname;
	this.country = country;
	this.sex = sex;
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((country == null) ? 0 : country.hashCode());
	result = prime * result + id;
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	result = prime * result + ((nickname == null) ? 0 : nickname.hashCode());
	result = prime * result + ((psaavord == null) ? 0 : psaavord.hashCode());
	result = prime * result + ((sex == null) ? 0 : sex.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Users other = (Users) obj;
	if (country == null) {
		if (other.country != null)
			return false;
	} else if (!country.equals(other.country))
		return false;
	if (id != other.id)
		return false;
	if (name == null) {
		if (other.name != null)
			return false;
	} else if (!name.equals(other.name))
		return false;
	if (nickname == null) {
		if (other.nickname != null)
			return false;
	} else if (!nickname.equals(other.nickname))
		return false;
	if (psaavord == null) {
		if (other.psaavord != null)
			return false;
	} else if (!psaavord.equals(other.psaavord))
		return false;
	if (sex == null) {
		if (other.sex != null)
			return false;
	} else if (!sex.equals(other.sex))
		return false;
	return true;
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getPsaavord() {
	return psaavord;
}
public void setPsaavord(String psaavord) {
	this.psaavord = psaavord;
}
public String getNickname() {
	return nickname;
}
public void setNickname(String nickname) {
	this.nickname = nickname;
}
public String getCountry() {
	return country;
}
public void setCountry(String country) {
	this.country = country;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}

}
